package com.test.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.*;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping(value="/test")
public class testcontroller {
	
		    protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) {
		        ModelAndView mview = new ModelAndView("springmvc") ;
		        mview.addObject("greeting", "Greetings from SpringMVC") ;
		       

		        return mview ;
		    }


}


